//
//  FCVehicleReamTimeStatusCell.m
//  ZhuKuang
//
//  Created by mafy on 17/7/12.
//  Copyright © 2017年 jjkj. All rights reserved.
//

#import "FCVehicleReamTimeStatusCell.h"
#import "FCVehicleReamTimeStatusModel.h"

@implementation FCVehicleReamTimeStatusCell

#pragma mark - 设置数据源
- (void)setModel:(FCVehicleReamTimeStatusModel *)model{
    _model = model;
    
    self.titleLabel.text = model.carNum;
    self.timeLabel.text = model.ServerTime;
    self.statusLabel.text = model.status;
    
    if ([model.state isEqualToString:@"0"]) {//在线 所有字体正常颜色
        
        self.titleLabel.textColor = COLOR(13, 169, 215, 1);
        self.timeLabel.textColor = COLOR(13, 169, 215, 1);
        self.statusLabel.textColor = COLOR(13, 169, 215, 1);
    }
    else{//离线 所有字体灰色
        
        self.titleLabel.textColor = [UIColor darkGrayColor];
        self.timeLabel.textColor = [UIColor darkGrayColor];
        self.statusLabel.textColor = [UIColor darkGrayColor];
    }
}


- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
